<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/1/4
 * Time: 上午11:44
 * 题库管理
 */
namespace Home\Controller;
use Think\Controller;


class ExerciseController extends MainController{

    //已有习题管理
    public function exercise_old_manage(){
        $this->assign('course_info',$this->teachercourse->getTeacherCourseNounInfoListWithCurrentTeacher());
        $this->display();
    }
    /* <-------------                       知识点管理                         -------------> */
    public function knowlege_manage(){
        $this -> assign('college_info',$this->event->getCollegeList());
        $this -> assign('par_college', $this->event->getCollegeList());
        $this -> assign('department_info', $this->event->getDepatmentList());
        $this -> assign('par_department', $this->event->getDepatmentList());
        $this -> assign('course_info',$this->event->getCourseList());
        $this -> assign('par_course',$this->event->getCourseList());
        $this->display();
    }
    public function knowlege_ShowDatatables(){
        $course_id = I('course_id');
        $result['aaData'] = $this->point->getPointInfoListWithCourseName($course_id);
        echo json_encode($result);
    }
    /* <-------------                       新建选择题                         -------------> */
    public function exercise_choose_add(){
//        var_dump($this->course->getCourseInfoListForTeacherNounByDepartment());


        $this->display();
    }
    /* <-------------                       新建填空题                         -------------> */
    //
    public function exercise_blank_add(){
        $this->display();
    }
    /* <-------------                       新建编程题                         -------------> */
    //
    public function exercise_program_add(){
        $this->display();
    }
}